def exampleMethod() {
    //do something
    echo "test1"
}

def otherExampleMethod() {
    //do something else
    echo "test2"
}

def call() {
    pipeline {
        agent any
        options { disableConcurrentBuilds() }
        stages {
            stage('begin') {
                steps {
                    script {
                        echo "pipeline-test"
                    }
                }
            }
        }
        post {
            success {
                script {
                    echo "pipeline-成功了"
                }
            }
            failure {
                script {
                    echo "pipeline-失败了"
                }
            }
        }
    }
}
return this